﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class KindSettingsEducation
	{
		public KindSettingsEducation()
		{
			m_RID = 0;
			m_ExamID = 0;
			m_Name = null;
			m_Operator = 0;
			m_Parameter = 0;
			m_Type = 0;
			m_Grade = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region ExamID
		
		private int m_ExamID;
		
		public int ExamID
		{
			get { return m_ExamID; }
			set { m_ExamID = value; }
		}
		
		#endregion
		
		#region Name
		
		private string m_Name;
		
		public string Name
		{
			get { return m_Name; }
			set { m_Name = value; }
		}
		
		#endregion
		
		#region Operator
		
		private int m_Operator;
		
		public int Operator
		{
			get { return m_Operator; }
			set { m_Operator = value; }
		}
		
		#endregion
		
		#region Parameter
		
		private int m_Parameter;
		
		public int Parameter
		{
			get { return m_Parameter; }
			set { m_Parameter = value; }
		}
		
		#endregion
		
		#region Type
		
		private int m_Type;
		
		public int Type
		{
			get { return m_Type; }
			set { m_Type = value; }
		}
		
		#endregion
		
		#region Grade
		
		private int m_Grade;
		
		public int Grade
		{
			get { return m_Grade; }
			set { m_Grade = value; }
		}
		
		#endregion
		
		#region SubjectID
		
		private int m_SubjectID;
		
		public int SubjectID
		{
			get { return m_SubjectID; }
			set { m_SubjectID = value; }
		}
		
		#endregion
		

		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			KindSettingsEducation castObj = (KindSettingsEducation) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 27;
			hash = hash * 27
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}